﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignPattern.BuilderPattern
{
    class Program
    {
        static void Main(string[] args)
        {
            Director director = new Director();
            Builder b1 = new Product2Builder();
            director.Construct(b1);
            //获取建造完成的对象
            var r = b1.GetResult();
            r.Show();
            Console.ReadKey();
        }
    }
}
